Creating Scripts
Back to Home
01. What We Are Going to Build
02. Major Elements of a Script
03. Quiz: What Are Methods?
04. Animating Objects Using Scripts
05. Quiz: What Does Translate() Do?
06. Smooth Animation Over Time
07. Quiz: What Is Time.deltaTime?
08. If Statements
09. Lesson Review
Back to Home
08. If Statements
If Statements
Additional Reading
Unity Scripting API:
Mathf.Sin
Wikipedia:
Sine
Project Preview:
Tip:
Use if statements to determine if the door is unlocked.
Next Concept